package com.qf.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * (Monitor)表实体类
 *
 * @author makejava
 * @since 2024-11-08 10:45:14
 */
@SuppressWarnings("serial")
@Data
@TableName("monitor")
@ApiModel(description = "健康状态表")
public class Monitor extends Model<Monitor> {

    //监测数据唯一标识符
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name="id", value="id")
    private Integer id;

    //关联的患者ID
    @ApiModelProperty(name = "patientId", value = "用户/患者id")
    private Integer patientId;

    //监测日期
    @ApiModelProperty(name = "monitorDate", value = "监测日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date monitorDate;

    //收缩压
    @ApiModelProperty(name = "highBloodPressure", value = "收缩压")
    private Double highBloodPressure;

    //舒张压
    @ApiModelProperty(name = "lowBloodPressure", value = "舒张压")
    private Double lowBloodPressure;

    //餐前血糖水平
    @ApiModelProperty(name = "fastingBloodGlucose", value = "餐前血糖")
    private Double fastingBloodGlucose;

    //餐后血糖水平
    @ApiModelProperty(name = "postprandialBloodGlucose", value = "餐后血糖")
    private Double postprandialBloodGlucose;

    //体重
    @ApiModelProperty(name = "weight", value = "体重")
    private Double weight;

    //身高
    @ApiModelProperty(name = "height", value = "身高")
    private Double height;

    //心率
    @ApiModelProperty(name = "heartRate", value = "心率")
    private Integer heartRate;

    //体温
    @ApiModelProperty(name = "temperature", value = "体温")
    private Double temperature;

    //血氧饱和度
    @ApiModelProperty(name = "oxygenSaturation", value = "血氧饱和度")
    private Integer oxygenSaturation;

    }

